<?php
/**
* #__com_accounts table handler
*
*/
class TableAccounts extends JTable
{
	/** @var int Primary key ABON */
	var $ABON = null;
	/** @var string NAME */
	var $NAME = null;
	/** @var string ADDRES */
	var $ADDRES = null;
	/** @var float ALLSUM */
	var $ALLSUM = null;
	/** @var char(2) MONTH */
	var $MONTH = null;
	/** @var char(4) YEAR */
	var $YEAR = null;
	/** @var float SUM */
	var $SUM = null;
/**
* Constructor
*
* @param database Database object
*/
	function __construct( &$db ){
		parent::__construct('#__accounts', 'ABON', $db);
	}
/**
* Validation
*
* @return boolean True if buffer is valid
*/
	function check(){
		if(!$this->content)
		{
			$this->setError(JText::_('Your Accounts table must contain some content'));
			return false;
		}
	return true;
	}
}
	

?>